import request from '@/utils/request'

// 查询访谈记录列表
export function listInterview(query) {
  return request({
    url: '/system/interview-log/list',
    method: 'get',
    params: query
  })
}

// 查询访谈记录详细
export function getInterview(id) {
  return request({
    url: '/system/interview-log/' + id,
    method: 'get'
  })
}

// 新增访谈记录
export function addInterview(data) {
  return request({
    url: '/system/interview-log',
    method: 'post',
    data: data
  })
}

// 修改访谈记录
export function updateInterview(data) {
  return request({
    url: '/system/interview-log',
    method: 'put',
    data: data
  })
}

// 删除访谈记录
export function delInterview(id) {
  return request({
    url: '/system/interview-log/' + id,
    method: 'delete'
  })
}

// 导出访谈记录
export function exportInterview(query) {
  return request({
    url: '/system/interview-log/export',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}